home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 06 General Architectures / 06 Rabin / robot.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-12-10  |  736 b   |  35 lines

  1. /* Copyright (C) Steve Rabin, 2001. 
  2.  * All rights reserved worldwide.
  3.  *
  4.  * This software is provided "as is" without express or implied
  5.  * warranties. You may freely copy and compile this source into
  6.  * applications you distribute provided that the copyright text
  7.  * below is included in the resulting source code, for example:
  8.  * "Portions Copyright (C) Steve Rabin, 2001"
  9.  */
  10.  
  11. #ifndef __ROBOT_H__
  12. #define __ROBOT_H__
  13.  
  14. #include "statemch.h"
  15.  
  16.  
  17. class Robot : public StateMachine
  18. {
  19. public:
  20.  
  21.     Robot( GameObject * object )
  22.         : StateMachine( object ) {}
  23.     ~Robot( void ) {}
  24.  
  25.  
  26. private:
  27.  
  28.     virtual bool States( StateMachineEvent event, MSG_Object * msg, int state );
  29.  
  30.     int m_timer;
  31.  
  32. };
  33.  
  34.  
  35. #endif    // __ROBOT_H__